package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.domain.OtherManualHostRecord;
import com.ruoyi.system.domain.OtherManualMicOrderRecord;
import com.ruoyi.system.mapper.OtherManualHostRecordMapper;
import com.ruoyi.system.mapper.OtherManualMicOrderRecordMapper;
import com.ruoyi.system.service.IOtherManualHostRecordService;
import com.ruoyi.system.service.IOtherManualMicOrderRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

@Service
@DataSource(value = DataSourceType.SLAVE)
public class OtherManualMicOrderRecordServiceImpl extends ServiceImpl<OtherManualMicOrderRecordMapper, OtherManualMicOrderRecord> implements IOtherManualMicOrderRecordService {

    @Resource
    private OtherManualMicOrderRecordMapper otherManualMicOrderRecordMapper;

    @DataSource(value = DataSourceType.SLAVE)
    public List<HashMap> getManualMicOrderRecord(String roomId, String startDate, String endDate, String startTime, String endTime) {
        return otherManualMicOrderRecordMapper.getManualMicOrderRecord(roomId, startDate, endDate, startTime, endTime);
    }

}
